//
//  RoundManager.h
//  DiceWar
//
//  Created by xiaofeng on 22/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef CLASSES_GAME_GAMEPLAY_ROUNDMANAGER_H_
#define CLASSES_GAME_GAMEPLAY_ROUNDMANAGER_H_

#include <vector>
#include "Player.h"

class RoundManager
{
public:
    RoundManager();
    ~RoundManager();
    
    void init(int numPlayers);
    
    PlayerType getCurrentPlayer() const;
    int getNumPlayers() const;
    
    void removePlayer(PlayerType player);
    void gotoNextPlayer();
    
private:
    typedef std::vector<PlayerType> PlayerSequenceVec;
    PlayerSequenceVec m_sequenceVec;
    int m_currentPlayerIndex;
};

#endif //CLASSES_GAME_GAMEPLAY_ROUNDMANAGER_H_
